package requestInterFace.Handle;

import org.sql.table.adviceinfo;

public class adviceHandle {
	/**
	 * 
	 * @param User_ID
	 * @param Advice_Title
	 * @return
	 */
	public boolean isUser(String User_ID,String Advice_Title){
		adviceinfo user=new adviceinfo();
		user.addequwhile(user.Mapfield("User_ID"), "=", User_ID);
		user.addequwhile(user.Mapfield("Advice_Title"), "=", Advice_Title);
		if(user.getCount()>0){
			 return true;
			
		}else{
			
			return false;
		}
	
	}
	public boolean isUP(String UP_ID,String ID){
		
		adviceinfo user=new adviceinfo();
		user.addequwhile(user.Mapfield("UP_ID"), "=", UP_ID);
		user.addequwhile(user.Mapfield("ID"), "=", ID);
		if(user.getCount()>0){
			 return true;
			
		}else{
			
			return false;
		}
	}
	
}
